package com.lazyfish.superdir.service;

import com.lazyfish.superdir.dao.QuestionDao;
import com.lazyfish.superdir.entity.Question;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class QuestionServiceImpl implements QuestionService{
    @Autowired
    QuestionDao questionDao;
    @Override
    public List<Question> getQuestionList() {
        return questionDao.getQuestionList();
    }

    @Override
    public Question getQuestion(int id) {
        return questionDao.getQuestion(id);
    }
}
